package com.scoressystem.service.imply;

import com.scoressystem.mapper.SubjectMapper;
import com.scoressystem.pojo.Subjects;
import com.scoressystem.service.SubjectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
import java.util.Map;
@Service
public class SubjectServiceimpl  implements SubjectService {
    @Autowired
    SubjectMapper subjectMapper;
    @Override
    public List<Subjects> SelectAllSubjectBypage(Map<String, Object> map) {
        return subjectMapper.SelectAllSubjectBypage(map);
    }

    @Override
    public long SelectAlSubjectsCount(Map<String, Object> map) {
        return subjectMapper.SelectAlSubjectsCount(map);
    }

    @Override
    public int insertSubjects(Subjects subjects) {
        return subjectMapper.insertSubjects(subjects);
    }

    @Override
    public int searchAllById(Subjects subjects) {
        return subjectMapper.searchAllById(subjects);
    }

    @Override
    public int deleteById(Subjects subjects) {
        return subjectMapper.deleteById(subjects);
    }

    @Override
    public int updateSubject(Subjects subjects) {
        return subjectMapper.updateSubject(subjects);
    }

    @Override
    public Integer searchSubjectBySubjectName(Subjects subjects) {
        return subjectMapper.searchSubjectBySubjectName(subjects);
    }

    @Override
    public List<Subjects> selectSubjectBydel(Subjects subjects) {
        return subjectMapper.selectSubjectBydel(subjects);
    }

    public void setSubjectMapper(SubjectMapper subjectMapper) {
        this.subjectMapper = subjectMapper;
    }
}
